package com.anolesoft.amljmes.test.fenguangyingdu.service;

import com.anolesoft.amljmes.test.fenguangyingdu.dto.*;
import com.anolesoft.yr.util.PageData;

import java.util.List;

/**
 * @author zhj
 * @date 2021/12/22 11:37
 */
public interface FenguangYingduService {
    /**
     * 查询分光硬度明细
     * @param fenguangYingduRecordQueryDTO
     * @param limit
     * @param curr
     * @return
     */
    PageData<List<FenguangYingduRecordQueryDTO>> selectListByCondition(FenguangYingduRecordQueryDTO fenguangYingduRecordQueryDTO, Integer limit, Integer curr);

    /**
     *
     * @param fenguangYingduRecordQueryDTO
     * @return
     */
    List<FenguangYingduRecordQueryDTO> selectListByCondition(FenguangYingduRecordQueryDTO fenguangYingduRecordQueryDTO);

    /**
     * 查询分光硬度修改日志
     * @param fenguangYingduRecordLogQueryDTO
     * @param limit
     * @param curr
     * @return
     */
    PageData<List<FenguangYingduRecordLogQueryDTO>> selectListByCondition(FenguangYingduRecordLogQueryDTO fenguangYingduRecordLogQueryDTO, Integer limit, Integer curr);

    int create(FenguangYingduRecordDTO fenguangYingduRecordDTO);
    void createBatch(List<FenguangYingduRecordDTO> fenguangYingduRecords);

    int remove(String id);

    FabrecordDTO queryFabrecordByCode(String code);

    FenguangYingduEmpDTO queryCheckByCode(String code);

    void modifyState(List<String> ids, Integer state);

    void modify(FenguangYingduRecordDTO dto);
}
